package com.example.demo.dto

import io.swagger.annotations.ApiModelProperty
import javax.validation.constraints.NotBlank

data class UpdatePasswordDo(

        @get: NotBlank(message = "原密码不能为空")
        @ApiModelProperty(value = "oldPassword")
        val oldPassword: String,

        @get: NotBlank(message = "新密码不能为空")
        @ApiModelProperty(value = "newPassword")
        val newPassword: String,

        @get: NotBlank(message = "用户id不为空")
        @ApiModelProperty(value = "userId")
        val userId: String

)
